package com.lollipop.shiro.model;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.util.HashSet;
import java.util.Set;

/**
 * @Author: J.K
 * @Date: 2021-06-02 14:39
 * @Description:
 */
@Data
public class Role {
    @Getter
    @Setter
    private Integer rid;

    @Getter
    @Setter
    private String rname;

    @Getter
    @Setter
    private Set<Permission> permissions = new HashSet<>();

    @Getter
    @Setter
    private Set<User> users = new HashSet<>();
}
